home *** CD-ROM | disk | FTP | other *** search
- /* samc0203.c */
-
- #include <graphics.h>
- #include "teglsys.h"
-
- optionmptr om1, om2;
-
- unsigned infooption(imagestkptr ifs, msclickptr ms)
- {
- imagestkptr fs;
- unsigned x=200,y=120,w=340,h=100;
-
- hidemouse();
- quickframe(&fs,&x,&y,&w,&h);
-
- setcolor(BLACK);
- frametext(fs,1,2,"TEGL Windows Toolkit II");
- frametext(fs,2,2,"Copyright 1990, TEGL Systems Corporation");
- frametext(fs,3,2,"All Rights Reserved.");
- showmouse();
-
- return(1);
- }
-
- unsigned getmssense(imagestkptr ifs, msclickptr ms)
- {
- setmousesense(ifs->x,ifs->y);
- return(1);
- }
-
- void main()
- {
- easytegl();
-
- om1 = createoptionmenu(font14);
- defineoptions(om1," Info... ", TRUE, infooption);
- defineoptions(om1,"--", FALSE, NULL);
- defineoptions(om1," Quit ", TRUE, quit);
-
- om2 = createoptionmenu(font14);
- defineoptions(om2," Memory ",TRUE,showcoordinates);
- defineoptions(om2," Mouse sensitivity ",TRUE,getmssense);
-
- createbarmenu(0,0,getmaxx());
- outbaroption(" File ",om1);
- outbaroption(" Utility ",om2);
-
-
- teglsupervisor();
- }